<?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the id=main div and all content after
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */
?>     
      </div><!-- #middle -->
      <div id="footer" role="contentinfo">      
          <div id="site-generator">
              Copyright © 2012 Heerro Extreme Agency. Wszelkie prawa zastrzeżone.            
          </div>    
      </div> <!--#footer -->
    </div><!-- #page -->
    <script type="text/javascript">
      jQuery(window).load(function()
      {
        jQuery('#secondary, #primary').height(Math.max(jQuery('#secondary').height(),jQuery('#primary').height()));
      });
    </script>
    <?php 
      global $wd_sub_page_shortcodeUsed;
      if($wd_sub_page_shortcodeUsed === TRUE)
      {
        wp_enqueue_style('wd_sub_page', get_template_directory_uri() . '/css/wd_sub_page.css');
        wp_enqueue_script('ui-core', get_template_directory_uri() . '/js/jquery-ui.js');
        wp_enqueue_script('wd_sub_page', get_template_directory_uri() . '/js/wd_sub_page.js');
      }
    ?>
<?php wp_footer(); ?>
</body>
</html>